package com.workManager.mapper;

import com.workManager.pojo.TdRole;
import com.workManager.pojo.TdRoleExample;
import java.util.List;
import java.util.Map;

import com.workManager.vo.RoleVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TdRoleMapper {
    int countByExample(TdRoleExample example);

    int deleteByExample(TdRoleExample example);

    int deleteByPrimaryKey(Integer roleId);

    int insert(TdRole record);

    int insertSelective(TdRole record);

    List<TdRole> selectByExample(TdRoleExample example);

    TdRole selectByPrimaryKey(Integer roleId);

    int updateByExampleSelective(@Param("record") TdRole record, @Param("example") TdRoleExample example);

    int updateByExample(@Param("record") TdRole record, @Param("example") TdRoleExample example);

    int updateByPrimaryKeySelective(TdRole record);

    int updateByPrimaryKey(TdRole record);

    List<RoleVo> query(@Param("cm") Map map);
}